Skip to content

SRVOCF-946: Add Husky pre-commit hook with lint, type-check, and Go checks#45

Open
Cragsmann wants to merge 1 commit into
functions-dev:masterfrom
Cragsmann:SRVOCF-946--husky-pre-commit
Open

SRVOCF-946: Add Husky pre-commit hook with lint, type-check, and Go checks#45
Cragsmann wants to merge 1 commit into
functions-dev:masterfrom
Cragsmann:SRVOCF-946--husky-pre-commit

Conversation

@Cragsmann

@Cragsmann Cragsmann commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add Husky pre-commit hook that runs yarn lint:fix, tsc --noEmit, and go vet/gofmt on backend/
  • Add type-check and prepare scripts to package.json
  • Add skipLibCheck: true to tsconfig.json (prevents false positives from third-party type declarations)
  • Hooks auto-install on yarn install via the prepare script

Test plan

  • yarn lint:fix passes
  • yarn type-check passes
  • Go vet and gofmt pass on backend/
  • Pre-commit hook runs successfully end-to-end

@twoGiants twoGiants left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you for this. 👍

@twoGiants twoGiants left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing. Can you use our commit message standard?

Please use the commit message slash command or the commit message guide to craft a brief commit message using conventional commits spec.

What do you think about adding a commit lint to the pre-commit hook too in a follow up PR?

@matejvasek

Copy link
Copy Markdown
Collaborator

plz update ./docs/claude-progress.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants